/* Base Styles */
.home-slider {
    max-width: 100%;
    height: 600px;
    margin: auto;
    position: relative;
    overflow: hidden;
}

.home-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    z-index: 1;
}

.home-slide.active {
    opacity: 1;
    z-index: 2;
}

.home-slider .home-slide img {
    width: 100%;
    height: 600px;
    transition: opacity 2s ease-in-out;
    object-fit: cover;
}

.marcas-header{
    margin-top: 60px;
}

/* Navigation Buttons - General Style */
.home-prev,
.home-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    /* Ligeramente más pequeño */
    height: 40px;
    font-size: 20px;
    /* Reducido para equilibrar el diseño */
    text-decoration: none;
    transition: background-color 0.6s ease;
    z-index: 2;
}

.home-prev:hover,
.home-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Positioning Navigation Buttons */
.home-prev {
    left: 1%;
}

.home-next {
    right: 1%;
}

/* Media Queries for Responsive Design */
@media (min-width: 1400px) {
    .home-slider {
        height: 700px;
    }

    .home-slider .home-slide img {
        height: 700px;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .home-slider {
        height: 650px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .home-slider {
        height: 550px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .home-slider {
        height: 450px;
    }

    .home-slider .home-slide img {
        height: 450px;
    }
}

@media (max-width: 767px) {
    .home-slider {
        height: 350px;
    }

    .home-slider .home-slide img {
        max-height: 350px;
    }
    
    .marcas-header{
        margin-top: 55px;
    }
}

@media (max-width: 576px) {
    .home-slider {
        height: 250px;
    }

    .home-slider .home-slide img {
        max-height: 250px;
    }
}

@media (max-width: 480px) {
    .home-slider {
        height: 200px;
    }

    .home-slider .home-slide img {
        max-height: 200px;
    }
    
    .marcas-header{
        margin-top: 50px;
    }
}

/*CARRUSEL SECUNDARIO*/
.carousel-secondary {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.carousel-secondary-items {
    border: 2px solid whitesmoke;
    display: flex;
    transition: transform 0.5s ease;
    padding: 0;
    margin: 0;
}

.carousel-secondary-item {
    box-sizing: border-box;
    margin: 0;
    flex: 0 0 25%;
    padding: 10px;
}

.carousel-secondary-item img {
    width: 100%;
    max-height: 250px;
    display: block;
}

.carousel-secondary-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    background-color: #000;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 24px;
    opacity: 0.7;
}

.carousel-secondary-prev {
    left: 10px;
}

.carousel-secondary-next {
    right: 10px;
}

/* Pantallas medianas */
@media (max-width: 1024px) {
    .carousel-secondary-item {
        flex: 0 0 33.3333%;
    }

    .carousel-secondary-control {
        padding: 8px 16px;
        font-size: 20px;
    }
}

/* Pantallas pequeñas */
@media (max-width: 768px) {
    .carousel-secondary-item {
        flex: 0 0 50%;
    }

    .carousel-secondary-control {
        padding: 6px 12px;
        font-size: 16px;
    }
}

/* Pantallas muy pequeñas */
@media (max-width: 480px) {
    .carousel-secondary-item {
        flex: 0 0 100%;
    }

    .carousel-secondary-control {
        padding: 4px 8px;
        font-size: 12px;
    }
}

/*CARRUSEL SECUNDARIO*/

#gallerySection {
    background-color: #f5f5f5;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

#gallerySection h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.publicacion-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    padding-bottom: 20px;
    margin-top: 20px;
}

.publicacion-grid-item {
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.publicacion-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.publicacion-grid-item img {
    width: 100%;
    /* Ajuste para cubrir el ancho del contenedor */
    height: auto;
    max-height: 350px;
    object-fit: cover;
}

.publicacion-grid-item-content {
    padding: 20px;
    text-align: center;
}

.publicacion-grid-item h3 {
    font-size: 22px;
    color: #444;
    margin-bottom: 10px;
}

.publicacion-grid-item p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Fondo alternado para los elementos de la cuadrícula */
.publicacion-grid-item:nth-child(even) {
    background-color: #f9f9f9;
}

/* Estilos para el modal */
.publi-modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.publi-modal-content {
    background-color: #fefefe;
    padding: 20px;
    border: 1px solid #888;
    width: 100%;
    max-width: 700px;
    position: relative;
    margin: auto;
    margin-top: 10%;
    /* Centrar verticalmente */
}

.publi-modal-content img {
    width: 100%;
    height: auto;
}

.publi-close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

.descripcion-publi {
    max-height: 250px;
    text-align: justify;
}

/* Animación de fade para el modal */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@-webkit-keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.publi-fade-in {
    animation: fadeIn 0.3s;
    -webkit-animation: fadeIn 0.3s;
}

/*CLIENTES*/
 .clientes-container {
     max-width: 1200px;
     margin: 20px auto;
     padding: 20px;
     background-color: #ffffff;
     border-radius: 12px;
     box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
     width: 90%;
 }

 /* Grid de clientes */
 .clientes-grid {
     display: grid;
     grid-template-columns: repeat(3, 1fr);
     gap: 25px;
 }

 /* Estilo individual de cada cliente */
 .cliente-item {
     display: flex;
     border: 1px solid #ccc;
     border-radius: 8px;
     overflow: hidden;
     box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
     transition: transform 0.3s ease-in-out;
 }

 /* Efecto al pasar el mouse por encima del cliente */
 .cliente-item:hover {
     transform: translateY(-5px);
 }

 /* Imagen del cliente */
 .cliente-image {
     width: 40%;
     height: 200px;
     object-fit: contain;
     border-right: 1px solid #ccc;
 }

 /* Información del cliente */
 .cliente-info {
     padding: 15px;
     width: 60%;
     display: flex;
     flex-direction: column;
     justify-content: center;
 }

 /* Título del cliente */
 .cliente-title {
     margin: 0 0 10px 0;
     color: #333;
     font-size: 20px;
     text-align: center;
 }

 /* Descripción del cliente */
 .cliente-description {
     font-size: 14px;
     color: #666;
     margin: 0 0 10px 0;
     text-align: center;
 }

 /* Responsive Design: Ajustes para tablets */
 @media (max-width: 1024px) {
     .clientes-grid {
         grid-template-columns: repeat(2, 1fr);
     }
 }

 /* Responsive Design: Ajustes para móviles */
 @media (max-width: 768px) {
     .clientes-filter-bar {
         flex-direction: column;
         align-items: stretch;
     }

     .cliente-input {
         width: auto;
         margin-bottom: 10px;
     }

     .clientes-grid {
         grid-template-columns: 1fr;
         width: 90%;
         margin: 0 auto;
     }

     .cliente-item {
         flex-direction: column;
     }

     .cliente-image {
         width: 50%;
         margin: 0 auto;
         border: 0;
     }

     .cliente-info {
         width: 100%;
     }
 }
 
 /*CLIENTES*/
